
/////////////////////////
// File: camera_settings.h
// Authors: Brian Fehrman and Scott Logan and Matt Richard
// Date: 3-27-2013
// 
// Purpose: Header file for the camera_settings functions
//       which are used to set various camera properties
//       for UVC compliant cameras using linux system
//       calls and uvcdynctrl. MUST HAVE uvcdynctrl
//       INSTALLED!
//
/////////////////////////

#ifndef _CAMERA_SETTINGS_H_
#define _CAMERA_SETTINGS_H_

////////// Includes ///////////
#include <iostream>
#include <stdlib.h>
#include <sstream> 
#include <string>
#include <opencv2/core/core.hpp>

////////// Usings ////////////
using namespace std;
using namespace cv;

////////// Constants //////////
const string BASE_CALL = "uvcdynctrl -d /dev/video";

////////// Prototypes /////////
int init_cams( FileNode fs );
bool set_exposure_absolute( int vid_num, int new_setting );
bool set_exposure_auto( int vid_num, int new_setting );
bool set_exposure_auto_priority( int vid_num, int new_setting );
bool set_white_balance_temperatue_auto( int vid_num, int new_setting );

#endif
